package com.lmqb.dao;

import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.lmqb.bean.LmAccount;
import com.lmqb.page.AccountPager;
import com.lmqb.page.UserAccountPager;

public interface LmAccountMapper {
    int deleteByPrimaryKey(Integer accountId);

    int insert(LmAccount record);

    int insertSelective(LmAccount record);

    LmAccount selectByPrimaryKey(Integer accountId);

    int updateByPrimaryKeySelective(LmAccount record);

    int updateByPrimaryKey(LmAccount record);

	List<LmAccount> selectAll(AccountPager pagerModel);

	int selectCount(AccountPager pagerModel);

	LmAccount selectByUserId(Integer userId);

	List<LmAccount> selectAllUser();

	List<LmAccount> selectTuiGuang(UserAccountPager pagerModel);
	
	//审核未通过处理这两个数据
	int checkSrtatusUpdateNoPass(@Param("freezenMoney")BigDecimal freezenMoney,@Param("accountBalance")BigDecimal accountBalance,
			                     @Param("userId")Integer userId);
}